package com.yc.chaoshi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author xz
 * @since 2022-08-04
 */
@TableName("ums_user")
public class UmsUser  implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(exist = false)
    private List<PmsGoods> goods;
    public List<PmsGoods> getGoods() {
        return goods;
    }
    public void setGoods(List<PmsGoods> goods) {
        this.goods = goods;
    }

    /**
     * 邮箱
     */
      private String email;

    /**
     * 用户名就是手机号
     */
    private String username;

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    /**
     * 权限
     */
    private String post;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 密码
     */
    private String password;

      /**
     * 电话
     */
      private String phone;

      /**
     * 个性签名
     */
      private String sign;

      /**
     * 创建时间
     */
      private LocalDateTime createTime;


      /**
     * 账号启用状态（0禁用 1启用）
     */
      private Integer status;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getEmail() {
        return email;
    }

      public void setEmail(String email) {
          this.email = email;
      }
    
    public String getPhone() {
        return phone;
    }

      public void setPhone(String phone) {
          this.phone = phone;
      }
    
    public String getSign() {
        return sign;
    }

      public void setSign(String sign) {
          this.sign = sign;
      }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }

      public void setCreateTime(LocalDateTime createTime) {
          this.createTime = createTime;
      }

    
    public Integer getStatus() {
        return status;
    }

      public void setStatus(Integer status) {
          this.status = status;
      }

    @Override
    public String toString() {
        return "UmsUser{" +
                "id=" + id +
                ", email='" + email + '\'' +
                ", username='" + username + '\'' +
                ", post='" + post + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", sign='" + sign + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                '}';
    }
}
